﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TpBaseObjects.Objects {
    public class Person {

        #region Members
        #endregion

        #region Constructor

        public Person() {
        }

        #endregion

        #region Properties

        public int PersKey { get; set; }
        public string PersTS { get; set; }
        public string Änderung { get; set; }
        public string Zuname { get; set; }
        public string Vorname { get; set; }
        public short Geschlecht { get; set; }
        public string Titel1 { get; set; }
        public string Titel2 { get; set; }
        public string Adresse { get; set; }
        public int EPLZ { get; set; }
        public string Straße { get; set; }
        public string Vorwahl { get; set; }
        public string Mobil { get; set; }
        public string PrivTelefon { get; set; }
        public string PrivFax { get; set; }
        public bool MailingSperre { get; set; }
        public string Notiz { get; set; }
        public bool Mitarbeiter { get; set; }
        public string Kürzel { get; set; }
        public string eMail { get; set; }
        public string Plz { get; set; }
        public string Ort { get; set; }
        public int OrgKey { get; set; }
        public string Funktion { get; set; }
        public string Berufstitel { get; set; }
        public string Durchwahl { get; set; }
        public string Fax { get; set; }
        public string Tätigkeit { get; set; }
        public string SelectPerson {
            get { return Zuname + " " + Vorname + " " + Titel1; }
        }

        #endregion

        #region Overrides

        public override string ToString() {
            string ret = "";
            if (Titel1 != null) {
                ret += Titel1 + ", ";
            }
            ret += Vorname + " " + Zuname;
            return ret;
        }
        #endregion
    }
}
